<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_name" class="form-control" name="row[b_name]" type="text" value="{$row.b_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('C_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-c_name" class="form-control" name="row[c_name]" type="text" value="{$row.c_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Content')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-content" class="form-control" name="row[content]" type="text" value="{$row.content|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Btype_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-btype_id" data-rule="required" data-source="btype/index" class="form-control selectpage" name="row[btype_id]" type="text" value="{$row.btype_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Point')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-point" data-rule="required" min="0" class="form-control" name="row[point]" type="number" value="{$row.point|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" min="0" class="form-control" name="row[mobile]" value="{$row.mobile|htmlentities}"data-rule="required;phone" data-rule-phone="[/^(1(([3456789][0-9])|(47)))\d{8}$/,'手机号格式错误']" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" class="form-control" name="row[address]" type="text" value="{$row.address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expirationtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expirationtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[expirationtime]" type="text" value="{$row.expirationtime}">
        </div>
    </div>
    <!-- <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pushswitch')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-pushswitch" data-rule="required" class="form-control selectpicker" name="row[pushswitch]">
                {foreach name="pushswitchList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.pushswitch"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div> -->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
